package com.arrogames.blondbattle.game.combat 
{
	/**
	 * ...
	 * @author ...
	 */
	public class Reload 
	{
		
		public var value:Number;
		protected var reload:Number = 0;
		
		public function Reload(pValue:Number) 
		{
			value = pValue;
			reload = pValue;
		}
		
		/**
		 * Reset the reload value
		 */
		public function reset() : void {
			value = reload;
		}
		
		/**
		 * Check if the reload has been completed
		 * @return
		 */
		public function reloaded() : Boolean {
			var reloaded:Boolean = false;
			if ( value < 0 ) {
				reloaded = true;
			}
			return reloaded;
		}
		
	}

}